// pages/index/comps/guessLike/guessLike.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        guessLikeClass: Array,
        guessLikeList: Array,
        guessLikeIndex: Number
    },

    /**
     * 组件的初始数据
     */
    data: {
        
    },

    /**
     * 组件的方法列表
     */
    methods: {
        guessClick: function(e){
            this.triggerEvent('guessClick', e.currentTarget.dataset.index)
        },
        goGoodsDetail(e) {
            wx.navigateTo({
                url: '/pages/goods/goodsDetail/goodsDetail?goodsId=' + e.currentTarget.dataset.id,
            })
        }
    }
})